﻿@model Prerequisites.Models.FormModel
<div class='formStyle'>
    @using (Html.BeginForm("Form", "FormEditor", FormMethod.Post, new { @class = "formFormEditorIndex", id = "userform" }))
    {
        @Html.LabelFor(m => m.Id)
        @Html.TextBoxFor(m => m.Id)
        @Html.ValidationMessageFor(m => m.Id)
        <br />
        @Html.LabelFor(m => m.AddDate)
        @Html.TextBoxFor(m => m.AddDate)
        @Html.ValidationMessageFor(m => m.AddDate)
        <br />
        @Html.LabelFor(m => m.Name)
        @Html.TextBoxFor(m => m.Name)
        @Html.ValidationMessageFor(m => m.Name)
        <br />
        @Html.LabelFor(m => m.Amount)
        @Html.TextBoxFor(m => m.Amount)
        @Html.ValidationMessageFor(m => m.Amount)
        <br />
        @Html.LabelFor(m => m.Option)
        @Html.DropDownListFor(m => m.Option, Model.Options)
        @Html.ValidationMessageFor(m => m.Option)
        <br />
        @Html.LabelFor(m => m.HtmlText)
        @Html.TextAreaFor(m => m.HtmlText)
        <br />
        @Html.LabelFor(m => m.SliderNo)
        @Html.HiddenFor(m => m.SliderNo)
        <div id='divSliderNo'></div>
        <br />
        <input type="submit" id="submitForm" value="Save" />
        <img id="progressImage" src="@Url.Content("~/Content/images/ajax-loader.gif")" width="25" height="25" style="display:none;" alt="Loading" />
    }
</div>
